package pt.mauromad.guias.service;

import java.util.List;

import org.springframework.stereotype.Service;

import pt.mauromad.guias.dao.CompanyDao;

@Service
public class CompanyService extends DaoService<CompanyDao, Long> {
	public CompanyService() {
		super(CompanyDao.class);
	}

	public List<CompanyDao> getByAccount(Long accountId) {
		return list("where account_id =:0", accountId);
	}

	public List<CompanyDao> getByAccount(Long accountId, boolean enabled) {
		return list("where account_id =:0 and enabled =:1", accountId, enabled);
	}

}
